package com.xsf.jieyou.cloud.api;

import com.xsf.jieyou.cloud.dto.SmsParam;

/**
 * 验证码发送接口
 *
 * @author xsf
 * @version v1.0.0
 * @date 2019/11/19
 **/
public interface CloudSmsService {
    /**
     * 发送注册短信验证码
     *
     * @param phoneNumbers 手机号
     * @return {@link SmsParam}
     */
    SmsParam sendRegisterSms(String phoneNumbers) throws Exception;

    /**
     * 发送登录短信验证码
     *
     * @param phoneNumber 手机号
     * @return {@link SmsParam}
     */
    SmsParam sendLoginSms(String phoneNumber) throws Exception;
}
